package com.scm.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * Yearsale entity. @author MyEclipse Persistence Tools
 */

public class Yearsale implements java.io.Serializable {

	// Fields

	private Integer yearSaleId;
	private Yearpurchase yearpurchase=new Yearpurchase();
	private Modeldictionary modeldictionary=new Modeldictionary();
	private String year;
	private Integer planSaleCount;
	private Integer saleCount;
	private Set monthsales = new HashSet(0);

	// Constructors

	/** default constructor */
	public Yearsale() {
	}

	/** minimal constructor */
	public Yearsale(Yearpurchase yearpurchase, Modeldictionary modeldictionary,
			String year, Integer planSaleCount, Integer saleCount) {
		this.yearpurchase = yearpurchase;
		this.modeldictionary = modeldictionary;
		this.year = year;
		this.planSaleCount = planSaleCount;
		this.saleCount = saleCount;
	}

	/** full constructor */
	public Yearsale(Yearpurchase yearpurchase, Modeldictionary modeldictionary,
			String year, Integer planSaleCount, Integer saleCount,
			Set monthsales) {
		this.yearpurchase = yearpurchase;
		this.modeldictionary = modeldictionary;
		this.year = year;
		this.planSaleCount = planSaleCount;
		this.saleCount = saleCount;
		this.monthsales = monthsales;
	}

	// Property accessors

	public Integer getYearSaleId() {
		return this.yearSaleId;
	}

	public void setYearSaleId(Integer yearSaleId) {
		this.yearSaleId = yearSaleId;
	}

	public Yearpurchase getYearpurchase() {
		return this.yearpurchase;
	}

	public void setYearpurchase(Yearpurchase yearpurchase) {
		this.yearpurchase = yearpurchase;
	}

	public Modeldictionary getModeldictionary() {
		return this.modeldictionary;
	}

	public void setModeldictionary(Modeldictionary modeldictionary) {
		this.modeldictionary = modeldictionary;
	}

	public String getYear() {
		return this.year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public Integer getPlanSaleCount() {
		return this.planSaleCount;
	}

	public void setPlanSaleCount(Integer planSaleCount) {
		this.planSaleCount = planSaleCount;
	}

	public Integer getSaleCount() {
		return this.saleCount;
	}

	public void setSaleCount(Integer saleCount) {
		this.saleCount = saleCount;
	}

	public Set getMonthsales() {
		return this.monthsales;
	}

	public void setMonthsales(Set monthsales) {
		this.monthsales = monthsales;
	}

}